package com.dfxy.blog.entity;

import java.util.Date;
import java.util.Set;

public class Blog {
    private int id;
    private String username;
    private String content;
    private Date publishTime;
    private int approveCount;
    private Set<String> approveUsernameSet;

    public Blog(int id, String username, String content, Date publishTime, int approveCount) {
        this.id = id;
        this.username = username;
        this.content = content;
        this.publishTime = publishTime;
        this.approveCount = approveCount;
    }

    public Blog(String username, String content, Date publishTime, int approveCount) {
        this.username = username;
        this.content = content;
        this.publishTime = publishTime;
        this.approveCount = approveCount;
    }

    public int getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public String getContent() {
        return content;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public int getApproveCount() {
        return approveCount;
    }

    public void setApproveCount(int approveCount) {
        this.approveCount = approveCount;
    }

    public Set<String> getApproveUsernameSet() {
        return approveUsernameSet;
    }

    public void setApproveUsernameSet(Set<String> approveUsernameSet) {
        this.approveUsernameSet = approveUsernameSet;
    }
}
